		//取消驗證
	protected void onCancelValidate() throws Exception{
		if(form.isNullOrEmpty("%%{pkAliasName}%%")){
			ret.setErrorInfo("沒有主鍵值,不能取消!");
		}
	}
	
		//執行取消
	protected void doCancel() throws Exception{
		CrudDataEntity crud = form.getCrudDataEntity("%%{dataSource}%%","%%{tablename}%%","%%{pkname}%%");
		crud.spsv("%%{pkname}%%", form.gpsv("%%{pkAliasName}%%"));
		crud.cancel();
		page.getToolbar().disableAllButtonExcept("newnext");
		ret.setOkInfo("取消成功!");
	}